package com.itheima.common;



//用进程获取Session中的id
public class GetSessionId {
  private static  ThreadLocal<Long> tl = new ThreadLocal<>();

  public static void SetId(long id){
      tl.set(id);
  }

  public static Long GetId(){
      Long aLong = tl.get();
      return aLong;
  }
}
